//
//  DeviceInfo.h
//  SquashSpark
//
//  Created by Coollang on 2017/11/6.
//  Copyright © 2017年 Coollang-YF. All rights reserved.
//

#import <Realm/Realm.h>

@interface DeviceInfo : RLMObject

@property NSString *indefinitelyKey;
@property NSString *deviceUUID;
@property OemType oemType;
@property NSString *macAddress;

/** 是否是切换了设备:同步数据成功后会变成NO */
@property BOOL isNewChangeConnect;
/** 此硬件，同步数据的最新时间戳 */
@property NSString *syncSwingDataTimeStamp;

// 当前版本
@property NSString *locationVersion;

+ (DeviceInfo *)devicePrivateKey:(NSString *)macAddress withUserId:(NSString *)userId;

+ (DeviceInfo *)deviceWithPer:(LGPeripheral *)per;

// 获取用户最新连接的设备
+ (DeviceInfo *)getLastDevice;

@end
